package com.linfnn.demo.Service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.linfnn.demo.Mapper.AdminUserMapper;
import com.linfnn.demo.Model.AdminUser;
import com.linfnn.demo.Service.AdminUserService;
import org.springframework.stereotype.Service;


@Service
public class AdminUserServiceImpl extends ServiceImpl<AdminUserMapper, AdminUser> implements AdminUserService {

    @Override
    public AdminUser getByName(String name){
        return getOne(new QueryWrapper<AdminUser>().eq("name", name));
    }

}
